package com.situ.root.goodsB.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.root.goodsB.mapper.PictureMapper;
import com.situ.root.goodsB.model.PictureModel;
import com.situ.root.goodsB.service.IPictureService;

@Service
public class PictureServiceImpl implements IPictureService{

	@Autowired
	private PictureMapper pictureMapper;
	
	@Override
	public int insert(PictureModel model) {
		return pictureMapper.insert(model);
	}
	
	@Override
	public List<PictureModel> selectList(PictureModel model){
		return pictureMapper.selectAll(model);
	}
	
	@Override
	public PictureModel selectId(Object id) {
		return pictureMapper.selectId(id);
	}
}
